how to read input from the user in javascript